# 静态文件处理,目前不用处理;
# app.mount("/static", StaticFiles(directory=""))

# app.add_middleware(  # 解决跨域问题
#     CORSMiddleware,
#     allow_origins=["*"],
#     allow_credentials=True,
#     allow_methods=["*"],
#     allow_headers=["*"],
# )
#
# @app.get("/200")
# def ok():
#     return JSONResponse(content={"message": "OK"}, status_code=status.HTTP_200_OK)
#
#
# @app.get("/201")
# def created():
#     return JSONResponse(content={"message": "Created"}, status_code=status.HTTP_201_CREATED)
#
#
# @app.get("/400")
# def bad_request():
#     return JSONResponse(content={"message": "Bad Request"}, status_code=status.HTTP_400_BAD_REQUEST)
#
#
# @app.get("/404")
# def not_found():
#     return JSONResponse(content={"message": "Not Found"}, status_code=status.HTTP_404_NOT_FOUND)
#
#
# @app.get("/500")
# def internal_server_error():
#     return JSONResponse(content={"message": "Internal Server Error"}, status_code=status.HTTP_500_INTERNAL_SERVER_ERROR)
